package common

import "time"

const (
	MembershipTypeVisitor = iota
	MembershipTypeVip
	MembershipTypeSvipMonth
	MembershipTypeSvipQuarter
	MembershipTypeSvipHalfYear
	MembershipTypeSvipYear
)

var DurationMap = map[int]time.Duration{
	MembershipTypeSvipMonth:    time.Hour * 24 * 30,
	MembershipTypeSvipQuarter:  time.Hour * 24 * 30 * 3,
	MembershipTypeSvipHalfYear: time.Hour * 24 * 30 * 6,
	MembershipTypeSvipYear:     time.Hour * 24 * 365,
}
